package com.example.user;


import com.example.user.service.UserService;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


@SpringBootApplication(exclude =  {DataSourceAutoConfiguration.class, MybatisAutoConfiguration.class})
@EnableCircuitBreaker // 开启Hystrix功能
//@RestController
//@EnableCaching
//@ServletComponentScan("com.example.demo.controller")
//@MapperScan(basePackages = {"com.example.demo.mapper"})
//@EnableScheduling
public class UserMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(UserMain.class, args);
    }
}
